﻿<Window x:Class="LyncHotkeys.PopUpWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:Microsoft.Lync.Controls;assembly=Microsoft.Lync.Controls"
        Title="Lync 2013 HotKeys" Height="100" Width="300" WindowStyle="None" 
        ShowInTaskbar="False" AllowsTransparency="True" Background="WhiteSmoke" 
        LostFocus="Window_LostFocus">
    <!--StateChanged="Window_StateChanged"-->

    <Window.Resources>
        <LinearGradientBrush x:Key="WindowFrameBrush" StartPoint="0,0.5" EndPoint="1,0.5">
            <GradientStop Color="CadetBlue" Offset="0.4"/>
            <GradientStop Color="Gray" Offset="1"/>
        </LinearGradientBrush>

        <Style TargetType="Button">
            <Setter Property="Opacity" Value="10"></Setter>
            <Setter Property="Height" Value="23"></Setter>
            <Setter Property="Width" Value="auto"></Setter>
            <Setter Property="Margin" Value="2"></Setter>
            <Setter Property="Padding" Value="2"></Setter>
            <Setter Property="Background" Value="White"></Setter>
            <Setter Property="Foreground" Value="DimGray"></Setter>
            <Setter Property="BorderBrush" Value="DarkTurquoise"></Setter>
        </Style>
    </Window.Resources>

    <Border Background="#50FFFFFF" CornerRadius="5" BorderBrush="{StaticResource WindowFrameBrush}" BorderThickness="2,0,2,2">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="27" />
            </Grid.RowDefinitions>

            <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.ColumnSpan="2" Margin="63,2,63,1">
                <!-- 
                Show the presence indicator. Hover over the icon to see the contact card.
                Set Source to a valid SIP URI in your organization. 
                -->
                <controls:PresenceIndicator x:Name="Presence" PhotoDisplayMode="Large"/>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>

                    <!-- Use the DisplayName property from PresenceIndicator to show the user's name -->
                    <TextBlock Grid.Row="0" Text="{Binding DisplayName, ElementName=Presence}"
                           Margin="4,0,0,0" FontWeight="Bold"
                           VerticalAlignment="Center"/>

                    <controls:MyPresenceChooser Grid.Row="1" />
                </Grid>


            </StackPanel>


            <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="2">
                <Button Click="Button_Click_Away">Away</Button>
                <Button Click="Button_Click_Free">Free</Button>
                <Button Click="Button_Click_Busy">Busy</Button>
                <Button Click="Button_Click_DoNotDisturb">Do Not Disturb</Button>
            </StackPanel>

        </Grid>
    </Border>

</Window>
